package test0ne;

import java.util.ArrayList;
import java.util.List;

public class listTest {
    public static void main(String[] args) {
//        String acc = "adfasdfasd";
//        String key = "adfasdfasd";
//        String mi = String.format("app:%s:%s", acc, key);
//        System.out.println(mi);


        List<Integer> ids = new ArrayList<Integer>();
        ids.add(1);
        ids.add(2);
        ids.add(3);

        List<Integer> id2 = new ArrayList<>();
        id2.add(2);
        id2.add(3);
        id2.add(4);

        System.out.println(ids.retainAll(id2));

        LittleZhen littleZhen = new LittleZhen();
    }

    private static List<Double> getResult() {
        List<Double> intList = new ArrayList<Double>();
        for(double i= -1; i>-10;i= i-0.001) {
            if(comput(i)) {
                intList.add(i);
            }
        }
        return intList;
    }

    private static boolean comput(double i) {
        double re = 3*(i*i*i) + 16* (i*i) + 26*i + 16;
        if(re == 0) {
            return true;
        }
        return false;
    }
}
